package org.apache.dolphinscheduler.dao.mapper;

import org.apache.dolphinscheduler.dao.entity.UserRole;
import org.apache.dolphinscheduler.dao.dto.UserRoleListDTO;

import java.util.List;

public interface UserRoleMapper {

    List<UserRoleListDTO> selectRoleUser(Integer roleId);
    List<Integer> selectRoleUserIds(Integer roleId);
    UserRole selectByUserId(Integer userId);
    int insert(UserRole userRole);
    int updateByUserId(UserRole record);
    int deleteByRoleId(Integer roleId);
    int deleteByUserId(Integer userId);

}
